package com.ansatsing.command.simpleRemote;

public class RemoteControlTest {
	public static void main(String[] args) {
		SimpleRemoteControl control = new SimpleRemoteControl();
		
		Cellphone cellphone = new Cellphone();
		Command command = new CellphoneOnCommand(cellphone);
		
		control.setCommand(command);
		control.buttonWasPressed();
		
		Car car = new Car();
		command = new CarOpenDoorCommand(car);
		
		control.setCommand(command);
		control.buttonWasPressed();
	}
}
